package cn.wolfcode.transfer.service;

import cn.wolfcode.transfer.domain.Department;
import cn.wolfcode.transfer.domain.Employee;
import cn.wolfcode.transfer.domain.Role;
import cn.wolfcode.transfer.qo.PageResult;
import cn.wolfcode.transfer.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    int insert(Employee employee,Long[] ids);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKey(Employee employee);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();
    PageInfo<Employee> getPageInfo(QueryObject qo);
    List<Role> getRoles();
    List<Role> getEmployeeRole(Long id);

    void insert(Employee employee);

    void updateByPrimaryKey(Employee employee, Long[] ids);

    Employee login(String username, String password);

    Employee selectByUsername(String username);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    void UpdatePassword( String newpassword,Long id);

    void updateByStatus(boolean status , Long id);
}